﻿using System.ComponentModel ;
using System.Runtime.Serialization;

namespace OpenLightGroup.Common
{
    [DataContract]
    public class NotifyingObject : INotifyPropertyChanged
    {
        protected virtual void RaisePropertyChanged ( string propertyName )
        {
            this.PropertyChanged.Raise ( this, propertyName ) ;

            //if ( this.PropertyChanged != null )
            //    this.PropertyChanged ( this, new PropertyChangedEventArgs ( propertyName ) ) ;
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged ;
        #endregion
    }
}